/*
 * LunCorrealtion.h
 *
 *  Created on: Jan 8, 2012
 *      Author: Shimi
 */
#pragma once

#include "LunTotalStatistics.h"
#include "ExtentEntry.h"
#include "Lun.h"
#include <list>
#include <map>
using namespace std;

class TimeCorrelation
{

private:
	map<int, double>* timeCorr;
	list<ExtentStatistics*>* timeSSD;
	int time;

public:
	TimeCorrelation(int t);	/* t -> expected time desired for correlation */
	int calcTimeCorrelation(int time, list<ExtentStatsAlgo*>* SSD);
	map<int, double>* getTimeCorr() {return timeCorr;};
	virtual ~TimeCorrelation();
	void copySSD(list<ExtentStatsAlgo*>* SSD);
};

